<!DOCTYPE html>
<html>
<head>
    <#include "../common.ftl">
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">

    <input name="id" type="hidden" value="${(customerContact.id)!}"/>

    <#-- 客户ID（后台设置到作用域中） -->
    <#--name="cusId"与model中cusId对应    -->
    <input name="cusId" type="hidden" value="${cId!}"/>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">往来时间</label>
        <div class="layui-input-block">
            <#if (customerContact.contactTime)??>
                <input type="text" class="layui-input userName" lay-verify="required" name="contactTime"
                       id="contactTime" placeholder="请输入往来时间" value="${(customerContact.contactTime)?string("yyyy-MM-dd")}" >
            <#else>
                <input type="text" class="layui-input userName" lay-verify="required" name="contactTime"
                       id="contactTime"  placeholder="请输入往来时间(yyyy-MM-dd)">
            </#if>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">地址</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input userName" lay-verify="required" name="address"
                   id="address" value="${(customerContact.address)!}" placeholder="请输入地址">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">往来概要</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入往来概要信息" name="overview" class="layui-textarea">${(customerContact.overview)!}</textarea>
        </div>
    </div>
    

    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit="" lay-filter="addOrUpdateCustomerContact">确认</button>
            <button class="layui-btn layui-btn-lg layui-btn-normal" id="closeBtn">取消</button>
        </div>
    </div>
</form>

<script type="text/javascript" src="${ctx}/js/customer/contact.add.update.js"></script>
</body>
</html>